package com.loan.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 抵押资产
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Mortgage  implements Serializable {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    private String name;

    private Integer categoryId;

    private String image;

    private Integer appId;

    private Integer companyId;

    @TableField(exist = false)
    private Company company;

    private BigDecimal valuation;

    private Date time;

    private Integer cusId;

    @TableField(exist = false)
    private Customer customer;

}